package structures
{
	import gc.data;
	import units.FilterUnit;
	
	public class Structure extends FilterUnit
	{
		
		private var valid:Boolean;
		
		//collision update
		
		public function isValid():Boolean
		{
			return valid;
		}
		
		public function setValid(b:Boolean):void
		{
			valid = b;
		}
		
		public function deactivate():void
		{
			stopDrag();
		} 
		
		public function activate():void
		{
			startDrag(true, data.Rect);
			setValid(true);
		}
		
		public function Structure(r:Number, lThickness:Number, lColor:uint, fColor:uint, lAlpha:Number, fAlpha:Number) 
		{
			setRadius(r);
			draw(lThickness, lColor, fColor, lAlpha, fAlpha);
		}
		
	}

}